package com.ishansong.ticket.model;


import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by saiyin on 15/9/19.
 * 工单新创建用户
 */
@Entity
@Table(name = "ticket_users")
public class TicketUser implements Serializable {
    private static final long serialVersionUID = 1L;
    //主键id
    private Long id;
    // 城市
    private Integer cityId;
    // 城市
    private String cityName;
    // 电话
    private String mobile;
    // 名称
    private String name;
    // 创建时间
    private Date createTime;
    // 备注
    private String remark;

    @Id
    @Column(name = "id", unique = true, nullable = false)
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    @Column(name = "city_id")
    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer city) {
        this.cityId = city;
    }
    @Column(name = "mobile")
    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    @Column(name = "remark")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    @Column(name = "city_name")
    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }
}
